Optimal. Leaf size=193 \[ \frac{(A+i B) \tan ^{m+1}(c+d x) \sqrt{\frac{b \tan (c+d x)}{a}+1} F_1\left (m+1;\frac{5}{2},1;m+2;-\frac{b \tan (c+d x)}{a},-i \tan (c+d x)\right )}{2 a^2 d (m+1) \sqrt{a+b \tan (c+d x)}}+\frac{(A-i B) \tan ^{m+1}(c+d x) \sqrt{\frac{b \tan (c+d x)}{a}+1} F_1\left (m+1;\frac{5}{2},1;m+2;-\frac{b \tan (c+d x)}{a},i \tan (c+d x)\right )}{2 a^2 d (m+1) \sqrt{a+b \tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.456835, antiderivative size = 193, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 4, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.121, Rules used = {3603, 3602, 135, 133} \[ \frac{(A+i B) \tan ^{m+1}(c+d x) \sqrt{\frac{b \tan (c+d x)}{a}+1} F_1\left (m+1;\frac{5}{2},1;m+2;-\frac{b \tan (c+d x)}{a},-i \tan (c+d x)\right )}{2 a^2 d (m+1) \sqrt{a+b \tan (c+d x)}}+\frac{(A-i B) \tan ^{m+1}(c+d x) \sqrt{\frac{b \tan (c+d x)}{a}+1} F_1\left (m+1;\frac{5}{2},1;m+2;-\frac{b \tan (c+d x)}{a},i \tan (c+d x)\right )}{2 a^2 d (m+1) \sqrt{a+b \tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3603
Rule 3602
Rule 135
Rule 133
Rubi steps
\begin{align*} \int \frac{\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{5/2}} \, dx &=\frac{1}{2} (A-i B) \int \frac{(1+i \tan (c+d x)) \tan ^m(c+d x)}{(a+b \tan (c+d x))^{5/2}} \, dx+\frac{1}{2} (A+i B) \int \frac{(1-i \tan (c+d x)) \tan ^m(c+d x)}{(a+b \tan (c+d x))^{5/2}} \, dx\\ &=\frac{(A-i B) \operatorname{Subst}\left (\int \frac{x^m}{(1-i x) (a+b x)^{5/2}} \, dx,x,\tan (c+d x)\right )}{2 d}+\frac{(A+i B) \operatorname{Subst}\left (\int \frac{x^m}{(1+i x) (a+b x)^{5/2}} \, dx,x,\tan (c+d x)\right )}{2 d}\\ &=\frac{\left ((A-i B) \sqrt{1+\frac{b \tan (c+d x)}{a}}\right ) \operatorname{Subst}\left (\int \frac{x^m}{(1-i x) \left (1+\frac{b x}{a}\right )^{5/2}} \, dx,x,\tan (c+d x)\right )}{2 a^2 d \sqrt{a+b \tan (c+d x)}}+\frac{\left ((A+i B) \sqrt{1+\frac{b \tan (c+d x)}{a}}\right ) \operatorname{Subst}\left (\int \frac{x^m}{(1+i x) \left (1+\frac{b x}{a}\right )^{5/2}} \, dx,x,\tan (c+d x)\right )}{2 a^2 d \sqrt{a+b \tan (c+d x)}}\\ &=\frac{(A+i B) F_1\left (1+m;\frac{5}{2},1;2+m;-\frac{b \tan (c+d x)}{a},-i \tan (c+d x)\right ) \tan ^{1+m}(c+d x) \sqrt{1+\frac{b \tan (c+d x)}{a}}}{2 a^2 d (1+m) \sqrt{a+b \tan (c+d x)}}+\frac{(A-i B) F_1\left (1+m;\frac{5}{2},1;2+m;-\frac{b \tan (c+d x)}{a},i \tan (c+d x)\right ) \tan ^{1+m}(c+d x) \sqrt{1+\frac{b \tan (c+d x)}{a}}}{2 a^2 d (1+m) \sqrt{a+b \tan (c+d x)}}\\ \end{align*}
Mathematica [F] time = 70.3696, size = 0, normalized size = 0. \[ \int \frac{\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{5/2}} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.505, size = 0, normalized size = 0. \begin{align*} \int{ \left ( \tan \left ( dx+c \right ) \right ) ^{m} \left ( A+B\tan \left ( dx+c \right ) \right ) \left ( a+b\tan \left ( dx+c \right ) \right ) ^{-{\frac{5}{2}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \tan \left (d x + c\right ) + A\right )} \tan \left (d x + c\right )^{m}}{{\left (b \tan \left (d x + c\right ) + a\right )}^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (B \tan \left (d x + c\right ) + A\right )} \sqrt{b \tan \left (d x + c\right ) + a} \tan \left (d x + c\right )^{m}}{b^{3} \tan \left (d x + c\right )^{3} + 3 \, a b^{2} \tan \left (d x + c\right )^{2} + 3 \, a^{2} b \tan \left (d x + c\right ) + a^{3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \tan \left (d x + c\right ) + A\right )} \tan \left (d x + c\right )^{m}}{{\left (b \tan \left (d x + c\right ) + a\right )}^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]